<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en"> <!--<![endif]-->
<head>
    <meta charset="utf-8">

    <title>HalfTone Template</title>
    <meta name="description" content="">

    <!-- Mobile viewport optimized: h5bp.com/viewport -->
    <meta name="viewport" content="width=device-width">

    <link rel="stylesheet" media="screen" href="css/superfish.css"/>
    <link rel="stylesheet" href="css/nivo-slider.css" media="all"/>
    <link rel="stylesheet" href="css/tweet.css" media="all"/>
    <link rel="stylesheet" href="css/menu.css">
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" media="all" href="css/lessframework.css"/>

    <script src="js/modernizr-2.5.3.min.js"></script>
    <script src="js/jquery-1.7.1.min.js"></script>
    <script src="js/purl.js"></script>
    <script type="text/javascript">
        $(function () {
            if ($.browser.msie && $.browser.version.substr(0, 1) < 7) {
                $('li').has('ul').mouseover(function () {
                    $(this).children('ul').css('visibility', 'visible');
                }).mouseout(function () {
                            $(this).children('ul').css('visibility', 'hidden');
                        })
            }
        });

        function category_link(category) {
            return "<a href=\"portfolio.html?cat=" + category + "\">" + category + "</a>"
        }

        function menu(name, list) {
            return (name != null ? category_link(name) + "<ul>" : '') + "<li>" +
                    list.map(function (each) {
                        return each.subcategories.length > 0 ? menu(each.name, each.subcategories) : category_link(each.name)
                    }).join("") + "</li></ul>"
        }

        $(document).ready(function () {
            $.get('menu.html', function (data) {
                $('#wrapper').prepend($(data).childNodes)
            });
            $.ajax({
                url: "rest/category",
                type: "GET",
                success: function (data, textStatus, jqXHR) {
                    $('#menu').append(menu(null, data))
                }
            })
        })
    </script>
</head>
<body>

<!-- WRAPPER -->
<div class="wrapper cf" id="wrapper">

    <!-- MAIN -->
    <div role="main" id="main" class="cf">
        <!-- SLIDER -->
        <div class="slider-wrapper theme-halftone">
            <div id="slider" class="nivoSlider">
                <img src="img/dummies/slides/04.jpg" alt=""/>
                <img src="img/dummies/slides/05.jpg" alt=""/>
                <img src="img/dummies/slides/06.jpg" alt=""/>
            </div>
            <div class="slider-left"></div>
            <div class="slider-right"></div>
        </div>
        <!-- ENDS SLIDER -->


        <!-- headline -->
        <div class="headline">Дуськин магазин</div>
        <!-- ENDS headline -->


        <!-- featured -->
        <ul class="feature cf">
            <li>
                <a href="single.html" class="thumb">
                    <img src="img/dummies/t1.jpg" alt="Thumbnail"/>

                    <div class="img-overlay"><i class="icon-plus-sign"></i></div>
                    <div class="date"><span class="m">JAN</span><span class="d">09</span></div>
                </a>
                <a href="single.html" class="excerpt">Pellentesque habitant morbi tristique senectus</a>

                <div class="categories"><a href="#">webdesign, </a><a href="#">print, </a><a href="#">photo, </a></div>
            </li>

            <li>
                <a href="single.html" class="thumb">
                    <img src="img/dummies/t2.jpg" alt="Thumbnail"/>

                    <div class="img-overlay"><i class="icon-plus-sign"></i></div>
                    <div class="date"><span class="m">JAN</span><span class="d">09</span></div>
                </a>
                <a href="single.html" class="excerpt">Pellentesque habitant morbi tristique senectus</a>

                <div class="categories"><a href="#">webdesign, </a><a href="#">print, </a><a href="#">photo, </a></div>
            </li>

            <li>
                <a href="single.html" class="thumb">
                    <img src="img/dummies/t3.jpg" alt="Thumbnail"/>

                    <div class="img-overlay"><i class="icon-plus-sign"></i></div>
                    <div class="date"><span class="m">JAN</span><span class="d">09</span></div>
                </a>
                <a href="single.html" class="excerpt">Pellentesque habitant morbi tristique senectus</a>

                <div class="categories"><a href="#">webdesign, </a><a href="#">print, </a><a href="#">photo, </a></div>
            </li>
        </ul>
        <!-- ENDS featured -->

    </div>
    <!-- ENDS MAIN -->

    <footer>

        <!-- twitter -->
        <div id="twitter-holder">
            <div class="ribbon-left"></div>
            <div class="ribbon">
                <div id="tweets-bar" class="tweet"></div>
            </div>
            <div class="ribbon-right"></div>
        </div>
        <!-- ENDS twitter -->


        <!-- widgets -->
        <ul class="widget-cols cf">
            <li class="first-col">

                <div class="widget-block">
                    <h4>RECENT POSTS</h4>

                    <div class="recent-post cf">
                        <a href="#" class="thumb"><img src="img/dummies/54x54.gif" alt="Post"/></a>

                        <div class="post-head">
                            <a href="#">Pellentesque habitant morbi senectus </a><span> March 12, 2011</span>
                        </div>
                    </div>
                    <div class="recent-post cf">
                        <a href="#" class="thumb"><img src="img/dummies/54x54b.gif" alt="Post"/></a>

                        <div class="post-head">
                            <a href="#">Pellentesque habitant morbi senectus</a><span> March 12, 2011</span>
                        </div>
                    </div>
                    <div class="recent-post cf">
                        <a href="#" class="thumb"><img src="img/dummies/54x54c.gif" alt="Post"/></a>

                        <div class="post-head">
                            <a href="#">Pellentesque habitant morbi senectus</a><span> March 12, 2011</span>
                        </div>
                    </div>
                </div>
            </li>

            <li class="second-col">

                <div class="widget-block">
                    <h4>ABOUT</h4>

                    <p>Vintage Template it's completely free this means you don't have to pay anything <a
                            href="http://luiszuno.com/blog/license">read license</a>.</p>

                    <p>Placeholder images by <a href="http://twistedfork.me/">Dan Matutina</a></p>

                    <p>Visit <a href="http://templatecreme.com/">Template Creme</a> and find the most beautiful free
                        templates up to date.</p>
                </div>

            </li>

            <li class="third-col">

                <div class="widget-block">
                    <h4>DUMMY TEXT</h4>

                    <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
                        Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero
                        sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. </p>
                </div>

            </li>

            <li class="fourth-col">

                <div class="widget-block">
                    <h4>CATEGORIES</h4>
                    <ul>
                        <li class="cat-item"><a href="#">Design</a></li>
                        <li class="cat-item"><a href="#">Photo</a></li>
                        <li class="cat-item"><a href="#">Art</a></li>
                        <li class="cat-item"><a href="#">Game</a></li>
                        <li class="cat-item"><a href="#">Film</a></li>
                        <li class="cat-item"><a href="#">TV</a></li>
                    </ul>
                </div>

            </li>
        </ul>
        <!-- ENDS widgets -->

        <!-- bottom -->
        <div id="bottom">
            <div id="widget-trigger-holder"><a id="widget-trigger" href="#" title="View More" class="poshytip"></a>
            </div>
            <div id="content">HalfTone Theme by <a href="http://www.luiszuno.com">luiszuno.com</a></div>
        </div>
        <!-- ENDS bottom -->

    </footer>


</div>
<!-- ENDS WRAPPER -->

<!-- JavaScript at the bottom for fast page loading -->

<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.7.1.min.js"><\/script>')</script>

<!-- scripts concatenated and minified via build script -->
<script src="js/custom.js"></script>

<!-- superfish -->
<script src="js/superfish-1.4.8/js/hoverIntent.js"></script>
<script src="js/superfish-1.4.8/js/superfish.js"></script>
<script src="js/superfish-1.4.8/js/supersubs.js"></script>
<!-- ENDS superfish -->

<script src="js/tweet/jquery.tweet.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/jquery.nivo.slider.js"></script>
<script src="js/css3-mediaqueries.js"></script>
<script src="js/tabs.js"></script>
<script src="js/poshytip-1.1/src/jquery.poshytip.min.js"></script>
<!-- end scripts -->

</body>
</html>